package com.example.demo.Job;

/**
 * @author liuhongfeng
 * @date 2019/2/11 18:00
 */
public class Test {

    private void test() {

    }

    public static void main(String[] args) {
        int x = 0;
        int y = 0;
        if (x == 33 && ++y > 0) {
            System.out.println("======>");
        }
        System.out.println(y);

        // & 用作位运算符
        System.out.println(0x31 & 0x0f);

        System.out.println(Byte.SIZE + "==" + Byte.MIN_VALUE + "==" + Byte.MAX_VALUE);
        System.out.println(Short.SIZE + "==" + Short.MIN_VALUE + "==" + Short.MAX_VALUE);
        System.out.println(Integer.SIZE + "==" + Integer.MIN_VALUE + "==" + Integer.MAX_VALUE);
        System.out.println(Long.SIZE + "==" + Long.MIN_VALUE + "==" + Long.MAX_VALUE);

        // long型和double型 相互转换
        double d = 88.88;
        long l = Math.round(d);
        System.out.println(l);

        long ll = 100L;
        double dd = (double) ll;
        System.out.println(dd);

    }

}
